// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Axios from 'axios'
import App from './App'
import router from './router'
import 'css/app'

import ElementUI from 'element-ui'
import '../theme/index'

import locale from 'element-ui/lib/locale/lang/en'

Vue.use(ElementUI, { locale })
Vue.prototype.$axios = Axios // 全局注册，使用方法为:this.$axios

Vue.config.productionTip = false
Vue.directive('myfocus', {
  inserted: function (el) {
    console.log(el)
    el.focus()
  }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
